
package com.example.broadcastreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

/**
 * author：sunweihao
 * 创建时间：2021/3/29 15:30
 * Describe：
 */
public class LowLevelReceiver extends BroadcastReceiver {
    private static final String TAG = "LowLevelReceiver";
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.d(TAG, "onReceive: LowLevelReceiver");
        Bundle resultExtras=getResultExtras(true);
        String content = resultExtras.getCharSequence("content").toString();
        Log.d(TAG, "onReceive: content-->"+content);
    }
}
